/*
Copyright 2010  Murali Devi (profdevi@gmail.com)

This file is part of ComineGL Project.

ComineGL is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

ComineGL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with ComineGL.  If not, see <http://www.gnu.org/licenses/>.

This code uses the irrlicht and irrklang libraries.  Please read
the libraries copyrights at 

	irrlicht library:  http://irrlicht.sourceforge.net
	irrklang library:  http://www.ambiera.com/irrklang

*/



//v0.14 copyright Comine.com 20101212U01
#ifndef ComineGLMesh_h
#define ComineGLMesh_h

///////////////////////////////////////////
#include "ComineGLDefines.h"

// Sound Operations
MDLLFUN bool CGLMeshLoadFile(int meshid,const char *meshfile);
MDLLFUN bool CGLMeshLoadEmpty(int meshid);
MDLLFUN bool CGLMeshLoadCylinder(int meshid,float radius, float height,int pies=20
			,int alpha=255,int red=255,int green=255,int blue=255);
MDLLFUN bool CGLMeshLoadBox(int meshid,float xwidth,float ywidth,float zwidth
			,int alpha=255,int red=255,int green=255,int blue=255);
MDLLFUN bool CGLMeshLoadSphere(int meshid,float radius,int slices=10,int layers=10
			,int alpha=255,int red=255,int green=255,int blue=255);
MDLLFUN bool CGLMeshExists(int meshid);
MDLLFUN bool CGLMeshUnload(int meshid);
MDLLFUN bool CGLMeshUnloadAll(void);
MDLLFUN int CGLMeshGetCount(void);

// Build Mesh and add vetices/triangle faces
MDLLFUN bool CGLMeshAddVertex(int meshid,float x,float y,float z
				,float u=0,float v=0
				,int alpha=255,int red=255,int green=255,int blue=255
				,float n1=1,float n2=0,float n3=0);
MDLLFUN bool CGLMeshAddTriangle(int meshid,int index1,int index2,int index3);
MDLLFUN int CGLMeshGetVertexCount(int meshid);
MDLLFUN int CGLMeshGetTriangleCount(int meshid);

#endif // ComineGLMesh

